package com.bh.extend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bh.extend.domain.JcCustomerUser;

import java.util.List;

/**
 * 客户用户Service接口
 *
 * @author slx
 * @date 2023-04-03
 */
public interface IJcCustomerUserService extends IService<JcCustomerUser> {

    /**
     * 查询客户用户
     *
     * @param userId 客户用户主键
     * @return 客户用户
     */
    public JcCustomerUser selectJcCustomerUserByUserId(Long userId);

    /**
     * 查询客户用户
     *
     * @param customerId 客户用户主键
     * @return 客户用户
     */
    public JcCustomerUser selectJcCustomerUserByCustomerId(Long customerId);

    /**
     * 查询客户用户列表
     *
     * @param jcCustomerUser 客户用户
     * @return 客户用户集合
     */
    public List<JcCustomerUser> selectJcCustomerUserList(JcCustomerUser jcCustomerUser);

    /**
     * 新增客户用户
     *
     * @param jcCustomerUser 客户用户
     * @return 结果
     */
    public int insertJcCustomerUser(JcCustomerUser jcCustomerUser);

    /**
     * 批量删除客户用户
     *
     * @param customerIds 需要删除的客户用户主键集合
     * @return 结果
     */
    public int deleteJcCustomerUserByCustomerIds(String[] customerIds);

    /**
     * 删除客户用户信息
     *
     * @param customerId 客户用户主键
     * @return 结果
     */
    public int deleteJcCustomerUserByCustomerId(Long customerId);
}
